package cn.com.klun.tjy.service.impl;

import cn.com.klun.tjy.dao.entity.TblAveVolMacdInfo;
import cn.com.klun.tjy.dao.mapper.ser.TblAveVolMacdInfoSerMapper;
import cn.com.klun.tjy.dubbo.bean.TjyParametersVo;
import cn.com.klun.tjy.service.MACDEffectStockService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author whm
 * @ClassName AccountingServiceImpl
 * @Description 平台统一记账接口
 * @date 2017年11月02日 10:39
 */
@Service
public class MACDEffectStockServiceImpl implements MACDEffectStockService {
	
	private Logger logger = LoggerFactory.getLogger(MACDEffectStockServiceImpl.class);

	@Autowired
	private TblAveVolMacdInfoSerMapper tblAveVolMacdInfoSerMapper;

	@Override
	public TjyParametersVo service(TjyParametersVo vo) {
		 String logkey = vo.getLogAndKey();
	        try {
				// MACD 线 翻转方向  设置返回常量参数容易分辨
				//
				String stockCode = vo.getString("stockCode");
				String curDay = vo.getString("curDay");
				TblAveVolMacdInfo tblAveVolMacdInfo = new TblAveVolMacdInfo();
				tblAveVolMacdInfo.setTrnDate(curDay);
				tblAveVolMacdInfo.setStoCode(stockCode);

				tblAveVolMacdInfoSerMapper.queryList(tblAveVolMacdInfo);

	        }catch (Exception e) {
	            vo.setResDesc(e.getMessage());
	            logger.error("[MACDEffectStockServiceImpl][service]出现程序,日志关联key:{},异常：{}", logkey);
	        }
	        return vo;
	}

}
